package com.itheima.singledemo;

/**
 * 2025/4/19 10:07
 */
public class TestSingleton2 {
    public static void main(String[] args) {

        Singleton2 instance = Singleton2.getInstance();
        Singleton2 instance2 = Singleton2.getInstance();

        System.out.println(instance == instance2);//true

    }
}
